<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="st" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
	<table>
		<tr>
			<td><a href='<st:url value="/school/updateNoticeBoard" />'>Update Notice Board</a></td>
		</tr>
		<tr>
			<td><a href='<st:url value="/school/newEnquiry" />'>New Enquiry Form</a></td>
		</tr>
		<tr>
			<td><a href='<st:url value="/school/newAdmissionForm" />'>New
					Admission Form</a></td>
		</tr>
		<%-- Only Admin should be able to see the link to add a new teacher --%>
		<security:authorize access="hasAnyRole('ROLE_TEACHER','ROLE_ADMIN')">		
		<tr>
			<td><a href='<st:url value="/school/newTeacherForm" />'>New
					Teacher Form</a></td>
		</tr>
		</security:authorize>
		<tr>
			<td><a href='<st:url value="/school/teachers" />'>Teachers List</a></td>
		</tr>
		<tr>
			<td>Hello <security:authentication property="principal.username"/> </td>
		</tr>
		<tr>
			<td></td>
		</tr>
	</table>
</body>
</html>